home *** CD-ROM | disk | FTP | other *** search
/ Aminet 24 / Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso / Aminet / gfx / misc / PBMKey.readme < prev    next >
Encoding:
Text File  |  1998-03-08  |  2.1 KB  |  51 lines

  1. Short:        Find double pictures by id's
  2. Author:       Nagilum
  3. Uploader:     nagilum@chillout.org
  4. Type:         gfx/misc
  5. Requires:     OS3.0,Shell
  6. Distribution: Aminet
  7.  
  8. What's the use ?
  9. You can use this program to find pictures having the same content, 
  10. even when they have different size.
  11.  
  12. Why PBM?
  13. This program can be used to create ID's for PBM-pictures.
  14. You may ask yourself, why the the hell PBM and not jpeg, iff or png ?
  15. Well, the first reasond is that PBM has a very simple structure,
  16. and the second is that for all important formats exist command-line
  17. converters to PBM.
  18. This program requires 256 Grayscale pictures in PBM to work,
  19. those pictures start with P5 in the header and can easily created
  20. for example from jpeg: djpeg -grayscale ...
  21. This programm was written in about 4 hours and i know it's not very
  22. clean, but it works (even fast).
  23.  
  24. How does it work ?
  25. The program calculates the average over the whole picture, then splits
  26. the picture into 64 pieces and calculates the average for each piece,
  27. then depending on if the average from the piece is lower/equal 
  28. or higher to the total average it sets a bit in the id to 0 or 1.
  29. 64 pieces create 64 bits, this id will be printed as a 16 digits hex number.
  30. Usally the ID stays the same if the picture is scaled.
  31.  
  32. You could use a script like the one included (setnote) to put the pictures id
  33. in the filenote, after that you could sort the files by the id and easily
  34. remove double pictures. If you want to use pattern for selecting the pictures
  35. just type:  spat setnote Pictures/#?.jpg  (for example).
  36.  
  37. DISCLAIMER: THE AUTHOR IS NOT RESPONSIBLE FOR ANY DAMAGE OR LOSS
  38. OF DATA OR WHATEVER CAUSED BY PBMKey. ANYONE USES IT WITHOUT WARRANTY.
  39.  
  40.  
  41. ============================= Archive contents =============================
  42.  
  43. Original  Packed Ratio    Date     Time    Name
  44. -------- ------- ----- --------- --------  -------------
  45.      612     487 20.4% 24-Dec-97 06:02:08  PBMKey
  46.     1683     926 44.9% 11-Feb-98 17:09:10  PBMKey.readme
  47.     3773    1426 62.2% 11-Feb-98 17:08:00  PBMKey.s
  48.      279     166 40.5% 07-Feb-98 01:29:38  setnote
  49. -------- ------- ----- --------- --------
  50.     6347    3005 52.6% 12-Feb-98 23:25:48   4 files
  51.